<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<html>
<head>
    <title>巡检报告</title>
</head>
<body>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <input type="hidden" value="${typeDesc}">
        <input type="hidden" value="${pTypeDesc}">
        <input type="hidden" value="${ppTypeDesc}">
        <t:datagrid name="zyEquipmentTypeList" checkbox="false" fitColumns="false" title="" pagination="false"
                    onDblClick="dbClick"
                    actionUrl="zyEquipmentTypeController.do?dataGridOfChooseEquipmentTypeForIr&typeDesc=${typeDesc}&pTypeDesc=${pTypeDesc}&ppTypeDesc=${ppTypeDesc}"
                    idField="id" fit="true" queryMode="group">
            <t:dgCol title="主键" field="id" hidden="true" width="120"></t:dgCol>
            <t:dgCol title="机型名" field="item" width="300"></t:dgCol>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    function dbClick(index, data) {
        $("#" + '${hidId}', top.myWindow.document).val(data.id);
        $("#" + '${valId}', top.myWindow.document).val(data.item);
        frameElement.api.close();
    }
</script>
</body>
</html>
